package lesson3.slides.io;

import java.io.*;

public class DirList {

    public static void main(String[] args) {
        // get the current path
        File pwd = new File(".");
        String[] dirList = pwd.list();
        for (int i = 0; i < dirList.length; i++) {
            System.out.println(dirList[i]);
        }
    }
}
